#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main() {
    int n = 0;
    while (~scanf("%d", &n))//(scanf("%d",&n))!=EOF
    {
        if (n <= 100 || n >= 90)
        {
            printf("Perfect\n");
        }
    }
    return 0;
}